@extends('shared.adminBase')
@section('title','新增活动')
@section('content')
    <section class="content-header">
        <h1>新增角色</h1>
        <ol class="breadcrumb">
            <li><a href="{{URL::action('AdminController@innerIndex')}}"><i class="fa fa-dashboard"></i> 首页</a>
            </li>
            <li><a href="{{URL::action('AdminController@getManagerRoleList')}}">角色管理</a></li>
            <li class="active">新增角色</li>
        </ol>
    </section>
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <!-- /.box -->
                <div class="box">
                    <!-- /.box-header -->
                    <div class="box-body col-md-6">
                        <form id="form1" action="{{URL::action('AdminController@storeManagerRole')}}"
                              method="post" enctype="multipart/form-data">
                            {{csrf_field()}}
                            <div class="form-group">
                                <label>角色名称</label>
                                <input type="text" name="name" class="form-control" placeholder="请填写管理员名称">
                                @if($errors->has('name'))
                                    <span class="help-block">
                                         <strong class="text-danger">{{$errors->first('name')}}</strong>
                                    </span>
                                @endif
                            </div>
                            <div class="form-group">
                                <label>角色简介</label>
                                <textarea class="form-control" name="description" rows="3" placeholder="请填写角色简介"></textarea>
                                @if($errors->has('description'))
                                    <span class="help-block">
                                         <strong class="text-danger">{{$errors->first('description')}}</strong>
                                    </span>
                                @endif
                            </div>
                            <div class="form-group">
                                <button type="submit" class="btn btn-default">提交</button>
                                <button type="button" onclick="history.back();" class="btn btn-default">返回</button>
                            </div>
                        </form>
                    </div>
                    <!-- /.box-body -->
                </div>
                <!-- /.box -->
            </div>
            <!-- /.col -->
        </div>
        <!-- /.row -->
    </section>

@endsection

@section('scripts')
    <script type="text/javascript">

    </script>
@endsection